package cn.wolfcode.luowowo.search.qo;


import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.elasticsearch.search.aggregations.bucket.composite.InternalComposite;

import java.lang.reflect.Type;

@Getter
@Setter
public class StrategySearchQo extends QueryObject{

        private int type=-1;
        private String orderBy;
        private int typeValue;

        public String getSearchCondition() {
            switch (this.getType()) {
                case 0:
                    return "countryId";
                case 1:
                    return "destId";
                case 2:
                    return "themeId";
            }
            return null;
        }
}
